package com.example.demo.config;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.example.demo.bean.StudentEntity;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;

/**
 * @program: SpringAOP
 * @ClassName ImportTest
 * @description:
 * @author: zsn
 * @create: 2024-07-22 10:28
 * @Version 1.0
 **/
public class ImportTest {

    public static void main(String[] args) throws Exception
    {
        FileInputStream fileInputStream = new FileInputStream(new File("D:\\hahhah.xls"));
        List<Object> list = ExcelImportUtil.importExcel(fileInputStream, StudentEntity.class, new ImportParams());
        System.out.println(list);
    }

}